package com.ricchieri.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ricchieri.dao.interf.IScheduleCharterExpenseDao;
import com.ricchieri.filter.BasicFilter;
import com.ricchieri.model.ScheduleCharterExpense;
import com.ricchieri.service.interf.IScheduleCharterExpenseService;

@Transactional(readOnly = true)
public class ScheduleCharterExpenseService implements IScheduleCharterExpenseService, Serializable {
	private static final long serialVersionUID = 1328386889241782435L;
	IScheduleCharterExpenseDao scheduleCharterExpenseDao;
	
	@Override
	@Transactional(readOnly = true)
	public List<ScheduleCharterExpense> getAllExpense() {
		BasicFilter filter = new BasicFilter();
		return scheduleCharterExpenseDao.getAllExpense(filter);
	}

	public IScheduleCharterExpenseDao getscheduleCharterExpenseDao() {
		return scheduleCharterExpenseDao;
	}

	public void setScheduleCharterExpenseDao(IScheduleCharterExpenseDao expenseDao) {
		this.scheduleCharterExpenseDao = expenseDao;
	}
}
